﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Entities;

namespace Stationery
{
    public partial class WebProduct : BasePage
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            string strID = "";
            string strID_Child = "";
            if (Request.Params["id"] != null)
            {
                strID = Request.Params["id"].ToString();
                if (Request.Params["id_child"] != null)//xem chi tiet
                {
                    strID_Child = Request.Params["id_child"].ToString();
                    LabelTitle.Text = Utils.label_product_detail;
                    ucControl.Controls.Add(Page.LoadControl("UC/UC_ProductDetail.ascx"));
                }
                else//xem ben ngoai
                {
                    LabelTitle.Text = Utils.label_product_list;
                    ucControl.Controls.Add(Page.LoadControl("UC/UC_ProductList.ascx"));
                }
            }
            else
            {
                LabelTitle.Text = Utils.label_product_all;
                ucControl.Controls.Add(Page.LoadControl("UC/UC_ProductList.ascx"));
            }
        }
    }
}
